package net.wofly.cashier.order.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 订单内容
 *
 * @author lign
 * @version 1.0
 * @created 17-10月-2017 21:57:06
 */
@Data
@Entity
@Table(name = "cashier_order_ordercontent")
@ApiModel(description = "订单内容")
public class OrderContent {

    @Id
    private String orderContentID;
    /**
     * 点菜批次
     * 1:正常点菜
     * 2：加菜
     * <ul>
     * <li>在己下单以后的点菜都为加菜</li>
     * <li></li>
     * </ul>
     */
    @ApiModelProperty(value = "点菜批次", required = true)
    private Integer batch = 1;

    @ApiModelProperty(value = "菜品ID", required = true)
    private String commodityID;
    @ApiModelProperty(value = "菜品数量", required = true)
    private Integer num;

    private String orderID;
    /**
     * 付款标识 0：未付款；1为己付
     */
    private Integer payFlag = 0;
    private String payInfoID;
    /**
     * 状态
     * <ul>
     * <li>0为下单 1为己上菜 ；-1为取消</li>
     * <li></li>
     * </ul>
     */
    private Integer status = 0;
    private long modifyDate;

    public OrderContent() {

    }

    @Override
    public void finalize() throws Throwable {

    }
}